package com.icebartech.core.constants;

/**
 * 常量类
 * @author wenhsh
 *
 */
public class IcebartechConstants {
    
    public final static String ALIYUN_OSS_FILE_GLOBAL_ID_KEY = "AliYunOssFileGlobalId";

	/** 结果码: 成功 */
	public static final int RESULT_OK = 1;
	/** 结果码: 最后一页 */
	public static final int RESULT_END = 11;
	/** 结果码: 失败 */
	public static final int RESULT_FAILED = -1;
	/** 结果码: 异常 */
	public static final int RESULT_ERROR = -11;
	/** 结果码: 异常 */
	public static final int RESULT_NOT_LOGIN = 401;
	/** 结果码: 异常 */
	public static final int RESULT_NO_PERMISSION = 403;
	/** 结果码码：未知错误**/
	public static final int UNKNOWN_ERROR = 500;
	
	public static final String SESSION_CURRENT_ADMIN_USER_CORE = "currentAdminUserCore";

	public static final String SESSION_CURRENT_VDREAM_USER_CORE = "currentVdreamUserCore";
	
	public static final String SESSION_CURRENT_BARBER_USER_CORE = "currentBarberUserCore";
	
	public static final String SESSION_LOGIN_TIME = "loginTime";

	public static final String COOKIE_USER_ID = "userId";
	
	public static final String COOKIE_NAME_KEY = "cookieName";
	
	public static final String COOKIE_ADMIN_NAME_VALUE = "admin_remember";//后台用户
	
	public static final String COOKIE_VDREAM_NAME_VALUE = "vdream_remember";//c端用户
	
	public static final String COOKIE_BARBER_NAME_VALUE = "barber_remember";//理发师用户
	
	public static final String INVITE_REGISTER_CRYPTO_SECRET = "fd@io#gdf%unoainvate";//邀请注册加密密码
	
	public static final String COOKIE_RESULT_KEY = "cookieValue";
	
	public static final String COOKIE_CRYPTO_SECRET_ADMIN = "vdream@io#gdf%unoaadmin";
	
	public static final String COOKIE_CRYPTO_SECRET_VDREAM = "vdream@io#gdf%unoawolf";
	
	public static final String COOKIE_CRYPTO_SECRET_BARBER = "vdream@io#gdf%unoacompany";

	public static final int ANDROID_CHANNEL_ID = 90000;
	
	public static final int ANDROID_SUBCHANNEL_ID = 1;
	
	public static final int FORMAL_IPHONE_CHANNEL_ID = 90000;
	
	public static final int FORMAL_IPHONE_SUBCHANNEL_ID = 2;
	
	public static final int UNFORMAL_IPHONE_CHANNEL_ID = 90000;
	
	public static final int UNFORMAL_IPHONE_SUBCHANNEL_ID = 3;
	
	public static final int WORKER_CHANNEL_ID = 90001;
	
	public static final int WROKER_SUBCHANNEL_ID = 1;
	
	public static final int VERIFY_CODE_INVALID_TIME = 10 * 60 * 1000;
	
	public final static String INNOFARM_AVATAR = "/resources/img/innofarm_avatar.jpg";
	
	public final static String WEIPAI_POINT_CENTER_AVATAR = "/resources/img/weipai_point_center.png";
	
	public final static String ACCESS_TOKEN_GROUP = "accessToken";//微信公众号accessToken缓存group值
	
	public final static String JSAPI_TICKET_GROUP = "jsapiTicket";//微信公众号jsapi_ticket缓存group值
	
	public final static String SYSTEM_CONFIG = "systemConfig";//系统总配置缓存group值
	
	public final static String SLIDER_INNOFARM_INDEX_GROUP = "sliderInnofarmIndex";//英农模板轮播图
	
	public final static String INNOFARM_INDEX_RECOMMEND_GROUP = "innofarmIndexRecommendGroup";//英农模板首页重点广告推荐图
	
	public final static String WEIXIN_MENU_CLICK = "weiXinMenuClick";
	
	public final static String WEIXIN_CLICK = "click";
	
	public final static String WEIXIN_CLICK_TYPE = "click";
	
	public final static String WEIXIN_VIEW_TYPE = "view";
	
	public final static int DEFAULT_PHOTO_TYPE = 1;
	
	public final static int WEIPAI_ACTIVITY_PHOTO_TYPE = 2;//活动轮播图类型
	
	public final static int WEIXIN_NEWS_RESPONSE_EVENT_PHOTO_TYPE = 3;//图文事件图片类型
	
	
	public final static String HTML5_PAGE_NO_PREMISSION = "没有权限，访问页面错误！";
	
	public final static String HTML5_PAGE_PARAM_ERROR = "页面参数错误，请重试！";
	
	public final static int WEIPAI_LIST_ITEM_DEFAULT_PAGESIZE = 10;
	
	public final static String IS_DYNAMICSDATA_Y = "y";
	
	public final static String IS_DYNAMICSDATA_N = "n";
	
	public final static String WEIXIN_PAY_TRADE_TYPE_JSAPI = "JSAPI";//微信支付jsapi支付方式
	
	public final static String WEIXIN_PAY_TRADE_TYPE_NATIVE = "NATIVE";//微信支付native支付方式
	
	public final static String WEIXIN_PAY_TRADE_TYPE_APP = "APP";//微信支付app支付方式
	
	public final static String WEIXIN_PAY_STATUS_SUCCESS = "SUCCESS";//微信接口调用返回成功
	
	public final static String WEIXIN_PAY_STATUS_FAIL = "FAIL";//微信接口调用返回失败
	
	public final static String OPEN_COURSE_TYPE = "openCourse";
	
	public final static String PREPARE_TYPE = "prepare";
	
	public final static String NOTICE_TYPE = "notice";
	
	public final static String ACTIVITY_TYPE = "activity";
	
	public final static String WEIXIN_USER_AGENT = "MicroMessenger";//微信请求过来的头信息
	
	public final static int ACTIVITY_RECOMMEND_STAR_COUNT = 3;//3星以上认为是推荐的活动
	
	public final static String LEXING_MOBILE_CODE_GROUP = "binggunMobileCode";//手机验证码缓存项value group值
	
	public final static int ACTIVITY_NEARBY_KM = 10;//10公里范围内认为是附近
	
	public final static String BAIDU_MAP_GEOCONV_URL = "http://api.map.baidu.com/geoconv/v1/?";//百度坐标转换接口url
	
	public final static String MOBILE_CODE_GROUP_KEY = "mobileRegisterCode";
	
	public final static String MOBILE_CODE_COUNT_GROUP_KEY = "mobileRegisterCodeCount";
	
	// public final static String AVATAR_PHOTO_TYPE = "avatarPhoto";
	
	//public final static String BARBER_PHOTO_TYPE = "barberPhoto";
	
	// public final static String STORE_PHOTO_TYPE = "storePhoto";
	
	public final static String WEIXIN_SESSION_GROUP_KEY = "WeixinSession";
	
	public final static String ADMIN_SESSION_GROUP_KEY = "AdminSession";
	
	public final static String APP_SESSION_GROUP_KEY = "AppSession";
	
	public final static String H5_MASTER_SESSION_GROUP_KEY = "H5MasterSession";
	
	public final static String H5_SLAVER_SESSION_GROUP_KEY = "H5SlaverSession";
	
	public final static String MINI_OPENID_SESSION_KEY_GROUP_KEY = "OpenIdSession";
	
	public final static String MINI_OPENID_SPLIT = ":";//openId与sessionKey的分割符
	
	public final static String OSS_TYPE = "havefun";//OSS存放上传上来的图片的文件夹名称
	
	public final static String APP_ROLE = "appRole";
	
	public final static String APP_ROLE_MENU = "appRoleMenu";
	
	public final static String APP_ROLE_PERMISSION = "appRolePermission";
	
	public final static String APP_PERMISSION_IDS = "appPermissionIds";
	
	public final static String VDREAM_COUPON_REDIS_GROUP = "vdreamCouponRedisGroup";
	
	public final static String VDREAM_COUPON_REDIS_COUNT_GROUP = "vdreamCouponRedisCountGroup";
	
	public final static String ORDER_ID_KEY = "OrderId";
	
	public final static String VDREAM_CALL_NUMBER_GROUP = "callNumber";
	
	public final static String VDREAM_CALL_NUMBER_FLAG_GROUP = "callNumberFlag";
	
	public final static String WEIXIN_SETTING_GROUP_KEY = "weixinSettingGroup";
	
	public final static String WEIXIN_SETTING_KEY = "weixin";
	
	public static String SYSTEM_DICTIONARY_GROUP_KEY = "system_dictionary_group";
	
	public final static String SYSTEM_DISABLE = "system_disable";
	
	public final static String SYSTEM_VERSION = "version";
	
}
